IRedisListAsync<T>
Wrap the common redis list operations under a IList[string] interface.
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisListAsync<T> : IHasStringId, IHasId<string>
Methods
CountAsync(CancellationToken)
View Source
Declaration
ValueTask<int> CountAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int32>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
GetAllAsync(CancellationToken)
View Source
Declaration
ValueTask<List<T>> GetAllAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
GetRangeAsync(Int32, Int32, CancellationToken)
View Source
Declaration
ValueTask<List<T>> GetRangeAsync(int startingFrom, int endingAt, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Int32 | startingFrom |
System.Int32 | endingAt |
System.Threading.CancellationToken | token |
GetRangeFromSortedListAsync(Int32, Int32, CancellationToken)
View Source
Declaration
ValueTask<List<T>> GetRangeFromSortedListAsync(int startingFrom, int endingAt, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Int32 | startingFrom |
System.Int32 | endingAt |
System.Threading.CancellationToken | token |
RemoveAllAsync(CancellationToken)
View Source
Declaration
ValueTask RemoveAllAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
TrimAsync(Int32, Int32, CancellationToken)
View Source
Declaration
ValueTask TrimAsync(int keepStartingFrom, int keepEndingAt, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Int32 | keepStartingFrom |
System.Int32 | keepEndingAt |
System.Threading.CancellationToken | token |
RemoveValueAsync(T, CancellationToken)
View Source
Declaration
ValueTask<long> RemoveValueAsync(T value, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
<T> | value |
System.Threading.CancellationToken | token |
RemoveValueAsync(T, Int32, CancellationToken)
View Source
Declaration
ValueTask<long> RemoveValueAsync(T value, int noOfMatches, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
<T> | value |
System.Int32 | noOfMatches |
System.Threading.CancellationToken | token |
AddRangeAsync(IEnumerable<T>, CancellationToken)
View Source
Declaration
ValueTask AddRangeAsync(IEnumerable<T> values, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<<T>> | values |
System.Threading.CancellationToken | token |
AppendAsync(T, CancellationToken)
View Source
Declaration
ValueTask AppendAsync(T value, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
<T> | value |
System.Threading.CancellationToken | token |
PrependAsync(T, CancellationToken)
View Source
Declaration
ValueTask PrependAsync(T value, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
<T> | value |
System.Threading.CancellationToken | token |
RemoveStartAsync(CancellationToken)
View Source
Declaration
ValueTask<T> RemoveStartAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
BlockingRemoveStartAsync(Nullable<TimeSpan>, CancellationToken)
View Source
Declaration
ValueTask<T> BlockingRemoveStartAsync(TimeSpan? timeOut, CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Nullable<System.TimeSpan> | timeOut |
System.Threading.CancellationToken | token |
RemoveEndAsync(CancellationToken)
View Source
Declaration
ValueTask<T> RemoveEndAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
EnqueueAsync(T, CancellationToken)
View Source
Declaration
ValueTask EnqueueAsync(T value, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
<T> | value |
System.Threading.CancellationToken | token |
DequeueAsync(CancellationToken)
View Source
Declaration
ValueTask<T> DequeueAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
BlockingDequeueAsync(Nullable<TimeSpan>, CancellationToken)
View Source
Declaration
ValueTask<T> BlockingDequeueAsync(TimeSpan? timeOut, CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Nullable<System.TimeSpan> | timeOut |
System.Threading.CancellationToken | token |
PushAsync(T, CancellationToken)
View Source
Declaration
ValueTask PushAsync(T value, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
<T> | value |
System.Threading.CancellationToken | token |
PopAsync(CancellationToken)
View Source
Declaration
ValueTask<T> PopAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
BlockingPopAsync(Nullable<TimeSpan>, CancellationToken)
View Source
Declaration
ValueTask<T> BlockingPopAsync(TimeSpan? timeOut, CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Nullable<System.TimeSpan> | timeOut |
System.Threading.CancellationToken | token |
PopAndPushAsync(IRedisListAsync<T>, CancellationToken)
View Source
Declaration
ValueTask<T> PopAndPushAsync(IRedisListAsync<T> toList, CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisListAsync<T> | toList |
System.Threading.CancellationToken | token |
RemoveAsync(T, CancellationToken)
View Source
Declaration
ValueTask<bool> RemoveAsync(T item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
<T> | item |
System.Threading.CancellationToken | token |
AddAsync(T, CancellationToken)
View Source
Declaration
ValueTask AddAsync(T item, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
<T> | item |
System.Threading.CancellationToken | token |
RemoveAtAsync(Int32, CancellationToken)
View Source
Declaration
ValueTask RemoveAtAsync(int index, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Int32 | index |
System.Threading.CancellationToken | token |
ContainsAsync(T, CancellationToken)
View Source
Declaration
ValueTask<bool> ContainsAsync(T item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
<T> | item |
System.Threading.CancellationToken | token |
ClearAsync(CancellationToken)
View Source
Declaration
ValueTask ClearAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
IndexOfAsync(T, CancellationToken)
View Source
Declaration
ValueTask<int> IndexOfAsync(T item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int32>
Parameters
Type | Name |
---|---|
<T> | item |
System.Threading.CancellationToken | token |
ElementAtAsync(Int32, CancellationToken)
View Source
Declaration
ValueTask<T> ElementAtAsync(int index, CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Int32 | index |
System.Threading.CancellationToken | token |
SetValueAsync(Int32, T, CancellationToken)
View Source
Declaration
ValueTask SetValueAsync(int index, T value, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Int32 | index |
<T> | value |
System.Threading.CancellationToken | token |